<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Test_report extends Model
{
    public $timestamps = false;
    protected $fillable = [
        'name', 'squad_id', 'test_id','test_batch','desc'
    ];

    public function squad()
    {
        return $this->belongsTo(Squad::class); 
    }

    public function test_config()
    {
        return $this->belongsTo(Test_config::class,'test_id','id'); 
    }

    public function student_test_scores()
    {
        return $this->hasMany(Student_test_score::class);
    }
}
